package com.example.webdemo.service.impl;

import com.example.webdemo.dao.HomeGridMapper;
import com.example.webdemo.model.HomeGrid;
import com.example.webdemo.service.HomeGridService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @description: HomeGridServiceImpl
 * @date 2023/7/31 19:13
 */
@Service
public class HomeGridServiceImpl implements HomeGridService {
    @Resource
    private HomeGridMapper homeGridMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return homeGridMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HomeGrid record) {
        return homeGridMapper.insert(record);
    }

    @Override
    public int insertSelective(HomeGrid record) {
        return homeGridMapper.insertSelective(record);
    }

    @Override
    public HomeGrid selectByPrimaryKey(Integer id) {
        return homeGridMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HomeGrid record) {
        return homeGridMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HomeGrid record) {
        return updateByPrimaryKeySelective(record);
    }

    @Override
    public List<HomeGrid> selectAll() {
        return homeGridMapper.selectAll();
    }
}
